﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Plat.WfProcess.Common;
using Plat.WfProcess.Business;

namespace Plat.WfProcess.Engine
{
    /// <summary>
    /// 活动执行的上下文对象
    /// </summary>
    internal abstract class ActivityExecutionContext
    {
        #region ActivityExecutionObject 属性列表
        internal ProcessInstanceEntity ProcessInstance
        {
            get;
            set;
        }

        internal ActivityEntity Activity
        {
            get;
            set;
        }

        internal ActivityResource ActivityResource
        {
            get;
            set;
        }

        internal ActivityInstanceEntity ActivityInstance
        {
            get;
            set;
        }

        internal long TaskID
        {
            get;
            set;
        }

        #endregion

        #region ActivityExecutionObject 构造函数
        internal ActivityExecutionContext(ProcessInstanceEntity processInstance,
            ActivityEntity activity,
            ActivityResource activityResource)
        {
            ProcessInstance = processInstance;
            Activity = activity;
            ActivityResource = activityResource;
        }

        internal ActivityExecutionContext(ActivityResource activityResource)
        {
            ActivityResource = activityResource;
        }
        #endregion
    }
}
